﻿#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

#endregion

namespace WaveEngine.Extensions.Resources
{
    [AttributeUsage(AttributeTargets.Enum, Inherited = true, AllowMultiple = false)]
    public class ResouceFilesAttribute : Attribute
    {
        public string Path { get; set; }

        public string[] Formats { get; set; }

        public ResouceFilesAttribute()
        {
            this.Path = null;
            this.Formats = new string[0];
        }
    }

    [AttributeUsage(AttributeTargets.Enum, Inherited = true, AllowMultiple = false)]
    public class ResouceFileAttribute : ResouceFilesAttribute
    {
        public string Format
        {
            get
            {
                return this.Formats[0];
            }

            set
            {
                this.Formats[0] = value;
            }
        }

        public ResouceFileAttribute()
            : base()
        {
            this.Formats = new string[1];
        }
    }
}
